# 定义元组，使用小括号

tuple_1 = (1, 3, "张三",)

print(tuple_1)
print(tuple_1[2])
print("-" * 200)

# 如果元组中只有一个元素，需要在最后加个逗号，否则就不是元组
tuple_2 = (2)
print(type(tuple_2))

tuple_2 = (2,)
print(type(tuple_2))
print("-" * 200)


def add(*args):
    print(args[2])


add(1, 2, 3)

# 函数嵌套，事务嵌套
